package com.jxd.project.menu.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jxd.project.menu.model.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName IMenuDao
 * @Description TODO
 * @Author 刘成
 * @Date 2025/10/11 9:23
 * @Version 1.0
 */

public interface IMenuDao extends BaseMapper<Menu> {
    /**
     *根据一级菜单查询二级菜单
     * param page
     * @param frontMenuId
     * @return
     */
    List<Menu> selectWithFrontMenuId(IPage<Menu> page,@Param("frontMenuId") int frontMenuId);

    /**
     * 查询一级菜单
     * @return
     */
    List<Menu> selectFrontMenus();
}
